package com.chf.carsystem.users.pojo;

import java.util.Date;
import java.util.List;

/**
 * 菜單实体类
 * @author Administrator
 *
 */
public class Menu {

	                                      
	private int id;
	private int parentId;
	private String name;
	private String url;
	private String content;
	private byte leafStatuts;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	//关联对象 角色集合
	List<Role> roles;
	
	public Menu() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Menu(int parentId, String name, String url, String content, byte leafStatuts, byte status, Date createTime,
			Date updateTime, Date pubTime) {
		super();
		this.parentId = parentId;
		this.name = name;
		this.url = url;
		this.content = content;
		this.leafStatuts = leafStatuts;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.pubTime = pubTime;
	}
	
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public byte getLeafStatuts() {
		return leafStatuts;
	}
	public void setLeafStatuts(byte leafStatuts) {
		this.leafStatuts = leafStatuts;
	}
	public byte getStatus() {
		return status;
	}
	public void setStatus(byte status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	
	

}
